package com.example.demo.mapper;

import com.example.demo.entity.Mdtype;
import com.example.demo.entity.Means;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface DataMapper {
    List<Means> findAllMeans(@Param("dtitle") String title);
    List<Mdtype> findAllMdtype();
    public void addMdtype(@Param("text") String text);
    public void modifyMdtype(@Param("id") String id,@Param("text") String text);
    public void delMdtypeById(@Param("id") String id);
    public void updateMeans(Map<String,String> map);
    public void addMeans(Map<String,String> map);
    public Means getByDid(String did);
    public void modifyMeans(Map<String,String> map);
    public void delByDid(@Param("did") String did);
}
